import 'package:jyofservice/bean/hrz_list_entity.dart';

hrzListEntityFromJson(HrzListEntity data, Map<String, dynamic> json) {
	if (json['hrz_id'] != null) {
		data.hrzId = json['hrz_id'] is String
				? int.tryParse(json['hrz_id'])
				: json['hrz_id'].toInt();
	}
	if (json['hrz_name'] != null) {
		data.hrzName = json['hrz_name'].toString();
	}
	if (json['glz_id'] != null) {
		data.glzId = json['glz_id'] is String
				? int.tryParse(json['glz_id'])
				: json['glz_id'].toInt();
	}
	return data;
}

Map<String, dynamic> hrzListEntityToJson(HrzListEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['hrz_id'] = entity.hrzId;
	data['hrz_name'] = entity.hrzName;
	data['glz_id'] = entity.glzId;
	return data;
}